<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>用户登录</title>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-2.2.3.min.js"></script>
	<script type="text/javascript">
		function check() {
			var usercode = $("#usercode").val();
			var password = $("#password").val();
			if (usercode == "" || password == "") {
				$("#message").text("账号或密码不能为空");
				return false;
			}
			return true;
		}
	</script>
</head>

<body>
	<div align="center">

		<table border="0" width="1140px" cellspacing="0" cellpadding="0" id="table">
			<tr>
				<td height="93"></td>
				<td></td>
			</tr>
			<tr>
				<td width="740px" height="412px"></td>
				<td class="login_msg" width="740px" align="center">
					<fieldset style="width: auto; margin: 0px auto;">
						<legend>
							<font style="font-size: 15px;" face="宋体">欢迎使用BOOT客户管理系统V2.0</font>
						</legend>
						<font color="red">
							<span id="message">${msg }</span>
						</font>
						<form action="${pageContext.request.contextPath}/login.action" method="post" onsubmit="return check()">
							账号：<input type="text" id="usercode" name="usercode" /><br><br>
							密码：<input type="password" id="password" name="password" /><br><br>
							<center>
								<input type="submit" value="登录" />
								<a href="${pageContext.request.contextPath}/toRegist.action">去注册>>></a>
							</center>
						</form>
					</fieldset>

				</td>
			</tr>
		
		
	</table>
	</div>
</body>

</html>